<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/5/28
  Time: 15:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<c:set var="user" value="${sessionScope.user}"/>
<div class="nav">
    <div class="nav-left">
    <img src="../images/2.png" />
    <ul>
        <li class="margin"><a href="#">社区</a></li>
        <li><a href="/index/main?id=${user.id}">学习空间</a></li>
        <li class="margin"><a href="#">我的群组</a></li>
    </ul>
    <div class="nav-left-button">
        <form action="/space/search">
            <input type="submit" id="button1" value="搜索" />
            <input type="text" placeholder="搜索资源或话题" name="title" />
        </form>
    </div>
</div>
    <div class="nav-right">
    <button id="button2">意见反馈</button>
    <!--头像-->
    <div  class="nav-right-logo">
        <div id="menu_title1" class="menu_title" onclick="openMenu(this)">
            <img src="../images/${user.userLogo}.jpg" />
            <div class="indicator" id="indicator1">
                <
            </div>
        </div>
        <div class="menu" id="menu1">
            <hr>
            <div class="item">
                <h2>${user.username}</h2>
            </div>
            <div class="item">
                <a href="/users/user-dongtai?id=${user.id}">我的动态</a>
            </div>
            <li class="item_divider"></li>
            <div class="item">
                <a href="/users/user-personal-center?id=${user.id}">个人中心</a>
            </div>
            <div class="item">
                <a href="/users/user-update-password?id=${user.id}">修改密码</a>
            </div>
            <hr>
            <div class="item">
                <a href="/users/tuichu">退出系统</a>
            </div>
        </div>
    </div>
    <!--消息提示-->
    <div class="nav-right-img">
        <ul>
            <li>
                <a href="#"><img src="../images/3.png" /></a>
                <ul>
                    <li><a>回复我的</a></li>
                    <li><a>收到的赞</a></li>
                    <li><a>系统通知</a></li>
                </ul>
            </li>
        </ul>
    </div>
</div>
</div>
